//
//  BNASLNAVViewController.m
//  BNDSLNavigationBarViewController
//
//  Created by yfs on 08/21/2020.
//  Copyright (c) 2020 yfs. All rights reserved.
//

#import "BNASLNAVViewController.h"
#import "BNASLNAVTestVC.h"
#import "BNDSLNavigationBarConfigure.h"
#import "BNDSLCommon.h"

@interface BNASLNAVViewController ()

@end

@implementation BNASLNAVViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	[BNDSLConfigure setupCustomConfigure:^(BNDSLNavigationBarConfigure *configure) {
         
        // 导航栏背景色
        configure.backgroundColor = [UIColor redColor];
        // 导航栏标题颜色
        configure.titleColor = [UIColor yellowColor];
        // 导航栏标题字体
        configure.titleFont = [UIFont systemFontOfSize:18.0f];
        // 导航栏返回按钮样式
        configure.backStyle = BNDSLNavigationBarBackStyleBlack;
        // 导航栏itme左右间距
        configure.sl_navItemLeftSpace = 12.0f;
        configure.sl_navItemRightSpace = 12.0f;
    }];
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    [self.navigationController pushViewController:[[BNASLNAVTestVC alloc] init] animated:true];
    [self presentViewController:[[BNASLNAVTestVC alloc] init] animated:true completion:nil];
}
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
